package com.forlove.app.qselect.friend.entity;

import android.support.annotation.NonNull;

import com.forlove.app.qselect.login.entity.ContactsInfoEntity;

import java.text.Collator;
import java.util.Comparator;

/**
 * Created by yjl on 2017/10/14.
 */

public class FriendEntity extends MineFriendEntity {


    @Override
    public int compareTo(@NonNull MineFriendEntity o) {
        Comparator cmp = Collator.getInstance(java.util.Locale.CHINA);
        return cmp.compare(this.contactsName, o.contactsName);
    }

    public FriendEntity(FriendEntity friendEntity) {
        super(friendEntity);
    }

    public FriendEntity(ContactsInfoEntity contactsInfoEntity) {
        super(contactsInfoEntity);
    }

    public FriendEntity(MineFriendEntity friendEntity) {
        super(friendEntity);
    }

    public FriendEntity() {
    }

    public FriendEntity(String contactsName, String contactsNumber, String sortKey, int contactsid) {
        super(contactsName, contactsNumber, sortKey, contactsid);
    }
}
